<?php echo basename(__FILE__);?>
<?php
	echo "hello";
	$testa = 'aaaaaaaaaaaaaa';
	echo $testa;


	$testb = 3 + 2 ;
	$testb ++ ;
	echo "$testa $testb people";
	echo '$testa $testb people';

	echo "\r\n==========\n";

	$conn = mysql_connect("127.0.0.1","root","123456");
	$db = mysql_select_db('test');
	echo "DATABASE :   $conn   $db";

	$sql = "select * from test";
	$result = mysql_query($sql);

	while($rs = mysql_fetch_object($result) ){
		echo "username: " . $rs->oid ."<hr>";
	}

	session_start();
	$_SESSION['item1'] = 'item1'

//	echo "session " . $_SESSION['item1'];





?>
<br>
<br>
<?php
	echo date('Y-M-D H:M:S');
	echo "[$REQUEST_URI]";

	$fruit[0] = 'banana';
	$fruit[1] = 'apple';
	$favorites['animal']='tiger';
	$favorites['sports']="basketball";
	$fruit[] = 'orange';
	$people['d']['e']='blue';
	$arr = array('aaaa','bbbb');
	print count($fruit);
?>
<br>
<br>
<script language='php'>
	echo "script php";

	for($i=4;$i<8;$i++){
		print "I have eaten $i apples today . \n";
		if($i > 6){
			print "$i > 6";
		}
	}

	$i =4 ;
	while($i<8){
		print "while $i";
		$i ++;
	}
</script>

	<div id = 'test'>
		
	</div>
	<script language='javascript'>
		for(var i=0;i<10;i++){

			document.getElementById('test').innerHTML=document.getElementById('test').innerHTML + '\r\ntest' + i ;
		}
	</script>


<script language="Javascript" src="http://localhost/myphp/graphcount.php?page=test">
<!--//
-->
</script>



